package com.hubing;

import ch.qos.logback.core.db.DBHelper;
import com.hubing.bean.Cat;
import com.hubing.bean.User;
import com.hubing.config.Myconfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLOutput;


@SpringBootApplication
public class MainApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MainApplication.class, args);
//        String []names = run.getBeanDefinitionNames();
//        for(String name:names){
//            System.out.println(name);
//        }
//        boolean tom = run.containsBean("Tom");
//        System.out.println(tom);
//        boolean user01 = run.containsBean("user01");
//        System.out.println(user01);



    }
}
